package com.stox.client.embedded;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stox.client.CountryClient;
import com.stox.manager.CountryManager;
import com.stox.manager.DownloadScheduleManager;
import com.stox.model.Country;

@Component
public class EmbeddedCountryClient implements CountryClient {

	@Autowired
	private CountryManager countryManager;
	
	@Autowired
	private DownloadScheduleManager downloadScheduleManager; //No use in this class, just so that the bean is loaded and download is scheduled
	
	public List<Country> findAll() {
		return countryManager.findAll();
	}

}
